export const login = req => {
  return USER_INFO
}

export const getUserInfo = req => {
  return USER_INFO
}

export const logout = req => {
  return {
    'code': 200,
    'message': '退出成功',
    'data': null
  }
}

export const getUserMenus = req => {
  return User_Menus
}
const USER_INFO = {
  'code': 200,
  'message': '登录成功',
  'data': {
    'manage_id': 2,
    'manage_name': '小猪654321',
    'manage_phone': '15659638071',
    'manage_pass': 'e10adc3949ba59abbe56e057f20f883e',
    'create_time': '2018-11-19 09:56:27',
    'update_time': '2018-11-23 23:08:44',
    'avator': 'https://pic.qqtn.com/up/2019-2/2019021508042249884.jpg',
    'access': ['admin', 'xiaomo'],
    'create_ip': '127.0.0.1',
    'delete_time': null,
    'manage_state': 1,
    'token': '8e1290bb2d689985769e8876a12dc169'
  }
}

const User_Menus = {
  'code': 200,
  'message': '获取成功',
  'data': {
    'manage': true,
    'manage_add': true,
    'manage_list': true,
    'user': true,
    'user_search': true,
    'user_add': true,
    'user_list': true,
    'meet': true,
    'meet_device': true,
    'meet_add': true,
    'meet_list': true,
    'meet_record': true,
    'order': true,
    'order_list': true,
    'order_check': true,
    'lock': true,
    'lock_list': true,
    'lock_log': true,
    'system': true,
    'system_setting': true,
    'system_log': true
  }
}
